using EPiServer.Core;

namespace OpenWaves.EPiServer.Localization
{
    public static class TranslationEntryExtensions
    {
        public static string Translate(this TranslationEntry entry)
        {
            return LanguageManager.Instance.Translate(entry);
        }

        public static string Translate(this TranslationEntry entry, string language)
        {
            return LanguageManager.Instance.Translate(entry.Path, language);
        }
    }
}